import RouterView from "./router";
import {HashRouter} from 'react-router-dom'
import zhCN from "antd/locale/zh_CN.js";
import {ConfigProvider, App} from "antd";
import 'dayjs/locale/zh-cn';
import EntryAlert from '@/common/components/useApp'

const config = {
  theme: {
    token: {
      colorPrimary: '#3060B7',
    }
  },
  locale: zhCN
}

const AppMain = () => {
  return (
    <HashRouter>
      <ConfigProvider {...config}>
        <App>
          <RouterView/>
          <EntryAlert/>
        </App>
      </ConfigProvider>
    </HashRouter>
  );
}

export default AppMain
